#include "RNOH/Package.h"
#include "generated/BaseTransitionViewPackage.h"
#include "generated/TransitionViewComponentInstance.h"

using namespace rnoh;
using namespace facebook;

namespace rnoh {

class TransitionViewPackage : public BaseTransitionViewPackage {
private:
    using Super = BaseTransitionViewPackage;
public:
    TransitionViewPackage(Package::Context ctx): BaseTransitionViewPackage(ctx) {}

    ComponentInstance::Shared createComponentInstance(const ComponentInstance::Context& ctx) {
      if (ctx.componentName == "CustomTransitionView") {
        return std::make_shared<TransitionViewComponentInstance>(ctx);
      }
      return nullptr;
    };

};
} // namespace rnoh